<?php

class Damages_Methods_Response_GetPermissions extends Damages_Methods_Response {

  /**
   *
   * @var Damages_Methods_Data_Permission 
   */
  public $permissions = array();

  public function setPermissions() {
    $data = DamagesPermissionsQuery::create()->find();
    foreach ($data as $permission) {
      $this->permissions[] = new Damages_Methods_Data_Permission($permission, false, true);
    }
  }

}